import { get, post, postform } from './http'
import { Toast } from 'vant';
class Utils {
    constructor(callback) {
        this.callback = callback;
    }
    upLoad(data){
    Toast.loading({
        mask: true,
        message: '加载中...'
    });
    return new Promise((resolve,reject) => {
        postform('/api/store/manager/good/images/',data).then(res=>{
            Toast('上传成功')
            resolve(res)
        }).catch(err=>{
            reject(err);
        })
        })
    }
}

export default Utils